package com.lightkits.wms.domain.saveonhand.service;

import com.lightkits.common.db.entity.BdOnhandJournal;
import com.lightkits.common.db.entity.BdOnhandQuantity;
import com.lightkits.common.db.entity.event.BdEvent;
import com.lightkits.common.db.entity.event.BdEventRecord;
import com.lightkits.framework.common.model.CheckResult;
import com.lightkits.wms.domain.saveonhand.models.OnhandParams;

/**
 * SaveEventDomain
 *
 * @author jing.wei@hand-china.com
 * Created on 2019/2/21 0:22
 */
public interface CreateEventDomain {
    BdEvent createEvent(OnhandParams onhandParams);
    BdEventRecord createEventRecord(String objectType,
                                    String recordType,
                                    String keyValue,
                                    Long eventId,
                                    Long objectId,
                                    String snapshotRecord);
    BdOnhandJournal  createOnhandJournal(BdOnhandQuantity params,
                                                        BdEvent event,
                                                        String directFlag );

}
